#include <iostream>
using namespace std;

class Date {
  private:
    int year, month, day;

  public:
    Date(int year, int month, int day) : year(year), month(month), day(day) {}
    friend void p();
};

void p() {
    Date date(2021,4,27);
    date.year = 2022;
    cout << date.year << endl;
}

int main() {
    p();
    return 0;
}